package micro;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.system.ApplicationPidFileWriter;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;

/**
 * @author txw
 * @version V1.0
 * @Title: micro.Application
 * @ProjectName micro-zuul-gateway
 * @Description: 描述
 * @since 2018/6/23 11:08
 */
@SpringBootApplication
@EnableZuulProxy
public class Application {
    public static void main(String[] args){
        SpringApplication app = new SpringApplication(Application.class);
        app.addListeners(new ApplicationPidFileWriter("app.pid"));
        app.run(args);
    }
}
